package com.hangzhou.xyj.model;


import com.j256.ormlite.field.DatabaseField;

/**
 * Created by neo.duan on 2016/4/21.
 * 关于录制的model
 */
public class RecordModel extends DianDramaModel {
    public static final int NO_UPLOADED = 0;
    public static final int UPLOADED = 1;

    public static final String USER_ID = "user_id";
    public static final String IS_UPLOAD = "_isUpload";

    @DatabaseField(columnName = IS_UPLOAD)
    private int isUpload; //是否已上传:0未上传 1已上传

    public boolean isUpload() {
        return isUpload == UPLOADED;
    }

    public void setIsUpload(boolean isUpload) {
        this.isUpload = isUpload ? UPLOADED : NO_UPLOADED;
    }

}
